package com.bruce.apkinstaller.install;

/**
 * Created by Administrator on 2018/1/17.
 */

public class FactoryInstall extends AbstractFactory {

    @Override
    public InInstall getInstallType(boolean isInstall) {
        if (getType(isInstall) == null) {
            return null;
        }
        if (getType(isInstall).equalsIgnoreCase(ConstantInstallType.PM_INSTALL)) {
            return new ProductPmInstallImpl();
        }
        if (getType(isInstall).equalsIgnoreCase(ConstantInstallType.ARGS_INSTALL)) {
            return new ProductArgsInstallImpl();
        }
        return null;
    }

    @Override
    public IUninstall getUnInstallType(boolean isUnInstall) {
        return null;
    }

}
